package com.test.test;

import android.os.Bundle;
import android.view.View;


import com.code.drawable.DrawableFactory;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

/**
 * Created by RLZ
 * on 2021/12/10
 */
public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        View im = findViewById(R.id.tv);

        im.setBackground(DrawableFactory.rectangle(R.color.purple_700,16f));
    }
}
